home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6666 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  761 b 

  1. Path: chewy.vcx.net!usenet
  2. From: Bruce Arnold <barnold@vcx.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Reading a line from a file
  5. Date: Thu, 15 Feb 1996 22:20:03 -0800
  6. Organization: Sprint United Telephone/Eastern - Internet @ccess
  7. Message-ID: <31242213.3846@vcx.net>
  8. References: <4ft5hu$ns6@coranto.ucs.mun.ca>
  9. NNTP-Posting-Host: y-wing-2a-32.tatooine.vcx.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (Win16; I)
  14.  
  15. > I have a file with several lines of data in the following format:
  16. > "123456789","Mr","David","Pierce","Memorial University of NF"
  17.  
  18. Use the standard library routine, 'strtok()' to parse out the tokens
  19. using ',' as a delimiter.  Then strip the quotes manually.
  20. ...Bruce
  21.